package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SalaryBaseV1Mapper;
import com.ruoyi.system.domain.SalaryBaseV1;
import com.ruoyi.system.service.ISalaryBaseV1Service;
import com.ruoyi.common.core.text.Convert;

/**
 * 员工薪资v1.0Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-10
 */
@Service
public class SalaryBaseV1ServiceImpl implements ISalaryBaseV1Service 
{
    @Autowired
    private SalaryBaseV1Mapper salaryBaseV1Mapper;

    /**
     * 查询员工薪资v1.0
     * 
     * @param id 员工薪资v1.0主键
     * @return 员工薪资v1.0
     */
    @Override
    public SalaryBaseV1 selectSalaryBaseV1ById(Long id)
    {
        return salaryBaseV1Mapper.selectSalaryBaseV1ById(id);
    }

    /**
     * 查询员工薪资v1.0列表
     * 
     * @param salaryBaseV1 员工薪资v1.0
     * @return 员工薪资v1.0
     */
    @Override
    public List<SalaryBaseV1> selectSalaryBaseV1List(SalaryBaseV1 salaryBaseV1)
    {
        return salaryBaseV1Mapper.selectSalaryBaseV1List(salaryBaseV1);
    }

    /**
     * 新增员工薪资v1.0
     * 
     * @param salaryBaseV1 员工薪资v1.0
     * @return 结果
     */
    @Override
    public int insertSalaryBaseV1(SalaryBaseV1 salaryBaseV1)
    {
        return salaryBaseV1Mapper.insertSalaryBaseV1(salaryBaseV1);
    }

    /**
     * 修改员工薪资v1.0
     * 
     * @param salaryBaseV1 员工薪资v1.0
     * @return 结果
     */
    @Override
    public int updateSalaryBaseV1(SalaryBaseV1 salaryBaseV1)
    {
        return salaryBaseV1Mapper.updateSalaryBaseV1(salaryBaseV1);
    }

    /**
     * 批量删除员工薪资v1.0
     * 
     * @param ids 需要删除的员工薪资v1.0主键
     * @return 结果
     */
    @Override
    public int deleteSalaryBaseV1ByIds(String ids)
    {
        return salaryBaseV1Mapper.deleteSalaryBaseV1ByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除员工薪资v1.0信息
     * 
     * @param id 员工薪资v1.0主键
     * @return 结果
     */
    @Override
    public int deleteSalaryBaseV1ById(Long id)
    {
        return salaryBaseV1Mapper.deleteSalaryBaseV1ById(id);
    }
}
